import java.util.Scanner;

public class chengji {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a[] = new int[5];
        int i = 0, sum = 0;
        for (; i < 5; i++) {
            a[i]=scanner.nextInt();
        }
        for (i = 0; i < 5; i++) {
            sum += a[i];
        }
        int b = sum;
        System.out.println(b);
    }
}